package com.example.util.service.impl;

import com.example.util.TempWhiteListUtil;
import com.example.util.mq.disruptor.FileReqData;
import com.example.util.mq.disruptor.service.MsgCommonService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.Map;

@Service("castUnDefindFileImpl")
@Slf4j
public class MobileFileNextImpl implements MsgCommonService {

    @Override
    public Map doingBusi(FileReqData param) {
        try {
            for (int i = 1; i <= 1000; i++) {
                TempWhiteListUtil.writeMobileEight(i, param.getWriteDir());
            }
        } catch (Exception e) {
            log.error(e.getMessage(), e);
        }
        return null;
    }
}